/*
 * Copyright (C) 2015-2016  Nicola Spanti (RyDroid) <dev@nicola-spanti.info>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */


#ifndef PLANET_WARS_2D_RT_CORE_MODEL_GAME_DEFAULT_H
#define PLANET_WARS_2D_RT_CORE_MODEL_GAME_DEFAULT_H


#include "PlanetWars2dRT-core/specific/controller/game_end_conditions.h"


EXTERN_C_BEGIN


static inline
void
game_set_default(struct game_t* a_game)
{
  a_game->get_winner_index = GAME_GET_WINNER_INDEX_DEFAULT;
}

static inline
void
game_init_first_time_only_default(struct game_t* a_game)
{
  game_init_first_time_only(a_game);
  game_set_default         (a_game);
}

static inline
struct game_t
game_create_default()
{
  struct game_t a_game;
  game_init_first_time_only_default(&a_game);
  return a_game;
}


EXTERN_C_END


#endif
